{template 'common/header'}
<div class="main">
	<ul class="nav nav-tabs">

	    <li><a  href="{php echo $this->createWebUrl('shop_wditer',array('rid' => $rid));}">服务员管理</a></li>

	    <li class="active"><a  href="#">添加服务员员</a></li>
	</ul>

	<div class="panel panel-default">
		<div class="panel-body">
			<form action="" method="post" class="form" enctype="multipart/form-data">

				<div class="form-group">
					<label for="wditer_name" class="control-label"><span style="color: red">*</span>名称:</label>
					<input type="text" class="form-control" name="wditer_name" value="">
				</div>
				<div class="form-group">
					<label for="wditer_openid" class="control-label" ><span style="color: red">*</span>管理员openid:</label>
					<input type="text" class="form-control" name="wditer_openid" value="" required="required">
					<div class="help-block">该openid必须是活动管理里面粉丝管理里面的openid。(用于认证服务号，下订单提醒。)<span style="color: red">注：添加后将不可以修改。</span></div>
				</div>
				<div class="form-group">
					<label for="wditer_mobile" lass="control-label"><span style="color: red">*</span>手机号:</label>
					<input type="number" class="form-control" name="wditer_mobile" value="">
				</div>

				<div class="form-group">
					<label class="control-label">是否开启:</label>
					<label class="radio-inline">
						<input type="radio" name="status" value="0" class="isstartusing" checked/>是
					</label>
					<label class="radio-inline">
						<input type="radio" name="status" value="1" class="isstartusing" />否
					</label>
				</div>

				<div class="form-group col-sm-12">
					<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
					<input type="hidden" name="op" value="addadmin" />
				</div>
		</div>
	</div>
	</form>

</div>
<!-- <div id="queding" class="hide">
	<span class="pull-right btn btn-primary" id="chengaddd" onclick="abc()">确定</span>
</div> -->
<script>
	require(['bootstrap'],function($){
		$('.btn').hover(function(){
			$(this).tooltip('show');
		},function(){
			$(this).tooltip('hide');
		});
	});


$(function(){

    $(".check_all").click(function(){
       var checked = $(this).get(0).checked;

       $("input[type=checkbox]").attr("checked",checked);
    });
	$("input[name=deleteall]").click(function(){
		var check = $("input:checked");

		if(check.length<2){
			alert('请选择要删除的记录!');
			return false;
		}
        if( confirm("确认要删除选择的记录?")){
		var id = new Array();
		check.each(function(i){
			id[i] = $(this).val();
		});
		$.post('{php echo $this->createWebUrl('deleteAllcard')}', {idArr:id},function(data){
			if (data.errno ==0)
			{
				location.reload();
			} else {
				alert(data.error);
			}


		},'json');
		}

	});
});
</script>
<script>
function drop_confirm(msg, url){
    if(confirm(msg)){
        window.location = url;
    }
}
</script>
{template 'common/footer'}